package com.imooc.springboot.dubbo.nilinili.provider.mapper;

import com.imooc.springboot.dubbo.nilinili.provider.entity.po.UserPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface FanMapper {

    List<UserPO> getFanList(String userId);

    List<UserPO> getFollowedList(String userId);

    int getIsFollowed(String userId, String followedId);

    int followAction(String userId, String followedId);

    int setNewFanCount(String userId,String count);

    int setNewFollowCount(String userId,String count);

    int cancleFollowAction(String userId,String followedId);
}
